package service;

import domain.Log;
import persistence.LogDao;
import persistence.impl.LogDaoImpl;

public class LogService {
    Log log;
    private LogDao logDao;

    public LogService(){
        log = new Log();
        logDao = new LogDaoImpl();
    }

    public String logInfo(Object ...s){
        return log.logInformation(s);
    }

    public void insertLogInfo(String username, String logInfo){
        logDao.insertLog(username, logInfo);
    }

}
